import axios from '@/common/config/axiosConfig'
import qs from 'qs'

export const insert = (data) => {
  return axios.post('/api/v1/gmBank/insert', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export const update = (data) => {
  return axios.put('/api/v1/gmBank/update', data, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export const queryPageList = (params) => {
  return axios.get('/api/v1/gmBank/queryByPage', {
    params,
    paramsSerializer: function (data) {
      return qs.stringify(data)
    }
  })
}
export const queryAll = () => {
  return axios.get('/api/v1/gmBank/queryAll')
}
export const selectOne = (id) => {
  return axios.get(`/api/v1/gmBank/queryOne/${id}`)
}
export const deleteById = (id) => {
  return axios.delete(`/api/v1/gmBank/delete/${id}`)
}
